package ru.spb.osll.myfit.server.log;

import org.apache.log4j.Priority;

import ru.spb.osll.myfit.client.log.LoggingService;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;

public class LoggingServiceImpl extends RemoteServiceServlet implements
		LoggingService {

	private static final long serialVersionUID = -8825893854513177715L;

	@SuppressWarnings("deprecation")
	public void logClientIssue(int level, String message) {
		Priority priority = Priority.toPriority(level * 10000); // log4j
																// priority
																// level
		Log.log.log(priority, message);

	}
}